package top.lishuoboy.lombok.annotation.val_var;

import lombok.var;

import java.util.ArrayList;

/**
 * 局部变量。查看编译代码手动加上final没用
 *
 * @author lishuoboy
 */
public class TestVar {
    public static void main(String[] args) {
        new TestVar().test();
    }

    private void test() {
        var strList = new ArrayList<String>();
        strList.add("1");
        strList.add("2");
        System.out.println(strList);
    }

}



